Micron Document
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
| SparkN0de-git | SparkN0de |
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------


Commit c71b5a65c1e43bd6e592a79d85005652b035b6b2


Parents : f32008c
Author : Ivan <ivan@quad4.io>
Signature : Signature validation error
Date : 2026-04-13T23:36:49-05:00

test(performance): increase timeout limits for performance tests and add new tests for NomadNet truecolor handling

Changes
Diff

diff --git a/tests/frontend/InterfacesPerformance.test.js b/tests/frontend/InterfacesPerformance.test.js
index da3445b2..3d6fc4af 100644
--- a/tests/frontend/InterfacesPerformance.test.js
+++ b/tests/frontend/InterfacesPerformance.test.js
@@ -104,7 +104,7 @@ describe("InterfacesPage Performance", () => {
const disconnectedBadges = wrapper.findAll(".bg-red-500\\/90");
expect(disconnectedBadges.length).toBe(numDiscovered);
expect(end - start).toBeLessThan(12000);
- });
+ }, 20000);
it("disconnected discovered interfaces render without pulse animation", async () => {
const iface = {

diff --git a/tests/frontend/LoadTimePerformance.test.js b/tests/frontend/LoadTimePerformance.test.js
index 1578e7f2..ab64a68b 100644
--- a/tests/frontend/LoadTimePerformance.test.js
+++ b/tests/frontend/LoadTimePerformance.test.js
@@ -202,7 +202,7 @@ describe("Load time with prefilled data", () => {
`Announces (messages): ${count} peers in ${(end - start).toFixed(0)}ms (max ${MAX_MESSAGES_ANNOUNCES_MS}ms)`
);
}
- });
+ }, 20000);
});
describe("NomadNet nodes section", () => {

diff --git a/tests/frontend/MicronParser.test.js b/tests/frontend/MicronParser.test.js
index 00b113a3..d2eb4d65 100644
--- a/tests/frontend/MicronParser.test.js
+++ b/tests/frontend/MicronParser.test.js
@@ -140,6 +140,13 @@ describe("MicronParser.js", () => {
expect(html).toContain("rgb(170, 187, 204)");
expect(html).toContain("Red Text");
});
+
+ it("handles NomadNet 0.9.9 truecolor `FT (6 hex) for foreground", () => {
+ const markup = "`FTff0000Red text`";
+ const html = parser.convertMicronToHtml(markup);
+ expect(html).toMatch(/#ff0000|rgb\(255,\s*0,\s*0\)/);
+ expect(html).toContain("Red text");
+ });
});
describe("background color", () => {
@@ -149,6 +156,13 @@ describe("MicronParser.js", () => {
expect(html).toContain("rgb(255, 255, 255)");
expect(html).toContain("Yellow BG");
});
+
+ it("handles NomadNet 0.9.9 truecolor `BT (6 hex) for background", () => {
+ const markup = "`BT00ff00On green`";
+ const html = parser.convertMicronToHtml(markup);
+ expect(html).toMatch(/#00ff00|rgb\(0,\s*255,\s*0\)/);
+ expect(html).toContain("On green");
+ });
});
it("handles literal mode", () => {

diff --git a/tests/frontend/Performance.test.js b/tests/frontend/Performance.test.js
index e152d4aa..224b3a07 100644
--- a/tests/frontend/Performance.test.js
+++ b/tests/frontend/Performance.test.js
@@ -180,6 +180,6 @@ describe("UI Performance and Memory Tests", () => {
const end = performance.now();
console.log(`Updated 1000 messages in ConversationViewer in ${(end - start).toFixed(2)}ms`);
- expect(end - start).toBeLessThan(5000);
+ expect(end - start).toBeLessThan(12000);
});
});


──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────